home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / langs / xlisp_21.zoo / fact.lsp < prev    next >
Encoding:
Lisp/Scheme  |  1990-02-28  |  74 b   |  4 lines

  1. (defun fact (n)
  2.        (cond ((= n 1) 1)
  3.          (t (* n (fact (- n 1))))))
  4.